home *** CD-ROM | disk | FTP | other *** search
/ PC Media 2 / PC MEDIA CD02.iso / share / udos / fgrep103 / putusage.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-29  |  1.1 KB  |  25 lines

  1. #include "bm.h"     /* N2 03-17-91 */
  2. #include <stdlib.h> /* N2 03-17-91 */
  3. #include "proto.h"  /* N2 04-05-91 */
  4.  
  5. void PutUsage(void)     /* N2 11-28-91 now puts NOT fprintf(stderr */
  6.  {
  7.   puts("grep: search for a given string or strings in a file or files");
  8.   puts("using Boyer-Moore String Search Program");
  9.   puts("Turbo-C version by David Polansky  03/21/88");
  10.   puts("Borland C++ 3.10 version. Ver: 1.03 by L.B. Neal 09/29/92\n");
  11.   puts("synopsis: grep [option] [string(s)] [file]"); // 1.03
  12.   puts("options:");
  13.   puts("-m Match for case as well (default=ignore case)");
  14.   puts("-c print only a count of matching lines");
  15.   puts("-f PFile read patterns from a file PFile");
  16.   puts("-l print a list of files containing the pattern(s)");
  17.   puts("-n print the character offset of the pattern(s)");
  18.   puts("-s silent mode. Return only success (0) or failure (1)");
  19.   puts("-x print only lines which match entirely");
  20.   puts("-e Take next argument as the pattern");
  21.   puts("-h Do not print file names");
  22.   puts("-z Use DirectVideo for Speed");
  23.   exit(2);
  24.  } /*PutUsage */
  25.